package com.corejava.training.interfaces;

public class Tablet implements Computer {

	public void browserWebsites() {
		System.out.println("Tablet can browse websites");
	}

	public void simpleCalculation() {
		System.out.println("Tablet can do calculations");
	}

	public void downloadApps() {
		System.out.println("Tablet can browse websites");
	}

	// Tablet specific method

	public String makeCall(String type) {

		if (type == "Tablet") {

			System.out.println("able to make Calls");

		} else {

			System.out.println("must be desktop");

		}

		return "";

	}

	public static void main(String[] args) {

		Tablet t = new Tablet();

		t.makeCall("dell");

	}
}
